<div class="box-content-project">
    <h2 class="category-name"><?php
        if (!empty($name_category)) {
            echo $name_category;
        }
        ?> CHI TIẾT</h2>

    <h4 class="detail-title"><?php echo $info_item['title']; ?></h4>

    <div class="detail-content">
        <?php echo $info_item['content']; ?>
    </div><!-- End detail-content -->

    <div class="others-project">
        <p class="title">.:Các tin tức khác:.</p>
        <?php
            if(!empty($item_others)){              
        ?>            
        <ul class="others-project-content">
            <?php
                for($i = 0; $i < count($item_others); $i++){
                switch ($category) {
                    case 'tin-tuc':
                    case 'noi-ngoai-that':
                        $url = $category .'/chi-tiet/' . $item_others[$i]['id'];
                        break;
                    default :
                        $url = $category . '/' . $item_others[$i]['type'] . '/chi-tiet/' . $item_others[$i]['id'];
                        break;
                }
            ?>
            <li><a href="<?php echo site_url($url); ?>"><?php echo $item_others[$i]['title']; ?></a> (<?php echo date("d.m.Y",  strtotime($item_others[$i]['created_date'])); ?>)</li>
            
                <?php } ?>
        </ul>
        <?php 
            }
        ?>

    </div>
</div><!-- End box-content-project -->
